/*
 * Controller that handles controls on the Museums Near Me page 
 */
myapp.controllers.nearMe = new Ext.Controller({
    credits: function (options){
    	//alert('credits clicked on index controller');
    	console.error('111111111111');
    	//android.util.Log.w("MUSEUM","aaaaa"); 
    	myapp.views.viewport.setActiveItem(myapp.views.credits, options.animation);
    },
    index: function (options){
    	if (myapp.isOnline)
    		{
		    	console.log('in near me index');

/*		    	var initialMuseums = myapp.stores.museums.museumsWithinRange(myapp.geoLocation.latitude, 
		    			myapp.geoLocation.longitude,
		    			5000);*/

	        	myapp.views.nearMe.addMap();
	        	myapp.views.viewport.setActiveItem(myapp.views.nearMe, options.animation);
    		}
    	else
    		alert("No connection. Please check your data connection.");
    }
});